<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>JSDoc: Source: main.js</title>

    <script src="scripts/prettify/prettify.js"> </script>
    <script src="scripts/prettify/lang-css.js"> </script>
    <!--[if lt IE 9]>
      <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
    <link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
    <link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css">
</head>

<body>

<div id="main">

    <h1 class="page-title">Source: main.js</h1>

    



    
    <section>
        <article>
            <pre class="prettyprint source linenums"><code>import 'babel-polyfill'


/** @namespace Vue **/
import Vue from 'vue'
import VueForm from 'vue-form'
import vueRouter from 'vue-router'

import museUI from 'muse-ui'
import 'muse-ui/dist/muse-ui.css'
import './styles/themes/blue.less'
import './assets/fonts/MaterialIcons/material-icons.css'

import configRouter from './routes'
import configValid from './scripts/configValid'
import store from './store'
import './services'

Vue.use(VueForm,configValid)
Vue.use(vueRouter)
Vue.use(museUI)
var router = new vueRouter(configRouter);

//转场loading
router.beforeEach(function (to, from, next) {
  store.dispatch('setLoading',true) 
  next()
})
router.afterEach(function (to) {
  store.dispatch('setLoading',false) 
})

//自定义组件
import appLoading from './components/appLoading'
Vue.component(appLoading.name, appLoading)

import {menuNav,menuNavItem} from './components/menuNav'
Vue.component(menuNav.name, menuNav)
Vue.component(menuNavItem.name, menuNavItem)

import appCalendar from './components/appCalendar'
Vue.component(appCalendar.name, appCalendar)

import vImg from './components/vImg'
Vue.component(vImg.name, vImg)

import fileList from './components/fileList'
Vue.component(fileList.name, fileList)

import mySelectPage from './components/mySelectPage'
Vue.component(mySelectPage.name, mySelectPage)

import myInputPage from './components/myInputPage'
Vue.component(myInputPage.name, myInputPage)

//自定义样式
import './styles/app.css'

import App from './App.vue'
new Vue({
  el: '#app',
  render: h => h(App),
  store,
  router:router
})


//vue全局函数注册
import vueAPIRegister from './scripts/vueMethods'
vueAPIRegister(Vue)

</code></pre>
        </article>
    </section>




</div>

<nav>
    <h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-components_appCalendar.html">components/appCalendar</a></li><li><a href="module-components_appLoading.html">components/appLoading</a></li><li><a href="module-components_appUserBox.html">components/appUserBox</a></li><li><a href="module-components_editImage.html">components/editImage</a></li><li><a href="module-components_fileList.html">components/fileList</a></li><li><a href="module-components_menuNava_menuNava.html">components/menuNava/menuNava</a></li><li><a href="module-components_menuNava_menuNavaItem.html">components/menuNava/menuNavaItem</a></li><li><a href="module-components_myInputPage.html">components/myInputPage</a></li><li><a href="module-components_mySelectPage.html">components/mySelectPage</a></li><li><a href="module-components_myWebuploader.html">components/myWebuploader</a></li><li><a href="module-components_textImgBox.html">components/textImgBox</a></li><li><a href="module-components_timeline_timeline.html">components/timeline/timeline</a></li><li><a href="module-components_timeline_timelineItem.html">components/timeline/timelineItem</a></li><li><a href="module-components_vImg.html">components/vImg</a></li><li><a href="module-scripts_common.html">scripts/common</a></li><li><a href="module-scripts_configValid.html">scripts/configValid</a></li><li><a href="module-scripts_LunarCalendar.html">scripts/LunarCalendar</a></li><li><a href="module-scripts_vueMethods.html">scripts/vueMethods</a></li><li><a href="module-services.html">services</a></li><li><a href="module-services_AnniversaryService.html">services/AnniversaryService</a></li><li><a href="module-services_ArchiveService.html">services/ArchiveService</a></li><li><a href="module-services_BigEventService.html">services/BigEventService</a></li><li><a href="module-services_FamilyService.html">services/FamilyService</a></li><li><a href="module-services_UserService.html">services/UserService</a></li><li><a href="module-vuex-history.html">vuex-history</a></li><li><a href="module-vuex-loading.html">vuex-loading</a></li><li><a href="module-vuex-toast.html">vuex-toast</a></li></ul><h3>Namespaces</h3><ul><li><a href="Vue.html">Vue</a></li></ul>
</nav>

<br class="clear">

<footer>
    Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.3</a> on Fri Jun 30 2017 09:20:36 GMT+0800 (中国标准时间)
</footer>

<script> prettyPrint(); </script>
<script src="scripts/linenumber.js"> </script>
</body>
</html>
